/*
 * @Author: your name
 * @Date: 2021-01-06 11:38:26
 * @LastEditTime: 2021-01-23 22:17:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \express-seed\routes\updataImg.JS
 */
const express = require('express');
const router = express.Router();
const Result = require('../../models/result.js');
const { getSellerbyStartService} = require('../../service/sellCodeService')
//获取所有启用状态的 销售人员列表
router.post('/', async (req, res, next) => {
    const {page_id} = req.body
    const { status, results } = await getSellerbyStartService(page_id)
    if (status) {
        new Result(results, '查询成功').success(res)
    } else {
        new Result({}, '查询失败').fail(res)
    }
})
 
module.exports = router;

